package cn.kevinking.ai;

import cn.kevinking.ai.model.TestModel;
import com.fasterxml.jackson.databind.node.ObjectNode;
import com.github.victools.jsonschema.generator.*;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * application class for mcp server
 *
 * @author kevinking
 * @since 13 Jul 2025
 */
@SpringBootApplication
public class BfzAiMcpServerApplication {
	public static void main(String[] args) {
		SpringApplication.run(BfzAiMcpServerApplication.class, args);
		SchemaGeneratorConfigBuilder configBuilder = new SchemaGeneratorConfigBuilder(SchemaVersion.DRAFT_2019_09, OptionPreset.PLAIN_JSON);
		SchemaGeneratorConfig config = configBuilder.build();
		SchemaGenerator generator = new SchemaGenerator(config);
		ObjectNode jsonNodes = generator.generateSchema(TestModel.class);

		System.out.println(jsonNodes.toString());
	}
}
